Page({
  data: {
    repqirlist: []
  },
  onLoad () {
    this.getRepqirlist()
  },
  async getRepqirlist () {
    const res = await wx.http({ url: '/repair' })
    const list = res.data.rows
    this.setData({ repqirlist: list })
  },
  goDetail (e) {
    // console.log(e)
    wx.navigateTo({
      url: '/repair_pkg/pages/detail/index?id=' + e.mark.id
    })
  },
  addRepair () {
    wx.navigateTo({
      url: '/repair_pkg/pages/form/index'
    })
  }
})
